{{ header }} 
{#{% if categories %} #}
{#<div class="container visible-xs">#}
  {#<nav id="menu" class="navbar">#}
    {#<div class="navbar-header"><span id="category" class="visible-xs">{{ text_press_category }}</span>#}
      {#<button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex2-collapse"><i class="fa fa-bars"></i></button>#}
    {#</div>#}
    {#<div class="collapse navbar-collapse navbar-ex2-collapse">#}
      {#<ul class="nav navbar-nav">#}
        {#{% for category in categories %} #}
        {#{% if category.children %} #}
        {#<li class="dropdown"><a href="{{ category.href }}" class="dropdown-toggle" data-toggle="dropdown">{{ category.name }}</a>#}
          {#<div class="dropdown-menu">#}
            {#<div class="dropdown-inner">#}
              {#{% for children in category %} #}
              {#<ul class="list-unstyled">#}
                {#<li><a href="{{ children.href }}">{{ children.name }}</a></li>#}
              {#</ul>#}
              {#{% endfor %} #}
            {#</div>#}
          {#</div>#}
        {#</li>#}
        {#{% else %}   #}
        {#<li><a href="{{ category.href }}">{{ category.name }}</a></li>#}
        {#{% endif %} #}
        {#{% endfor %} #}
      {#</ul>#}
    {#</div>#}
  {#</nav>#}
{#</div>#}
{#{% endif %} #}
<div class="container" id="press_press">
  <ul class="breadcrumb">
    {% for breadcrumb in breadcrumbs %} 
    <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
    {% endfor %} 
  </ul>
  <div class="row">{{ column_left }} 
    {% if column_left and column_right %}
    {% set class = 'col-sm-6' %}
    {% elseif column_left or column_right %}
    {% set class = 'col-sm-9' %}
    {% else %}
    {% set class = 'col-sm-12' %}
    {% endif %}  
     
    <div id="content" class="{{ class }}">{{ content_top }} 
    
      <h1>{{ title }}</h1>
      
      <div class="text-left">
			
			<span><i class="fa fa-calendar"></i> <b>{{ text_created_date }}</b> {{ date_added }}</span> 

	  </div>
          
      {{ description }} 
      
      {% if products %} 
      <h3 class="widget-title">
        <span>{{ text_related }}</span>
      </h3>
      <div class="row no-gutters">
        <div class="product-wrapper clearfix">

          {% set i = 0 %}
          {% for product in products %}
          {% if column_left  and  column_right %}
          {% set class = 'col-lg-6 col-md-6 col-sm-12 col-xs-12 product-layout product-grid' %}
          {% elseif  column_left  or  column_right %}
          {% set class = 'col-lg-4 col-md-4 col-sm-6 col-xs-12 product-layout product-grid' %}
          {% else %}
          {% set class = 'col-sm-3 product-layout product-grid' %}
          {% endif %}

          <div class="{{ class }}">
            <div class="product-thumb transition">
              <div class="image"><a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive" /></a></div>
              <div class="caption">
                <h4 class="product-name"><a href="{{ product.href }}">{{ product.name }}</a></h4>
                {#<p>{{ product.description }}</p>#}
                {#{% if product.rating %}#}
                {#<div class="rating">#}
                  {#{% for i in 1..5 %}#}
                  {#{% if rating < i %}<span class="fa fa-stack"><i class="fa fa-star-o fa-stack-1x"></i></span>{% else %}<span class="fa fa-stack"><i class="fa fa-star fa-stack-1x"></i><i class="fa fa-star-o fa-stack-1x"></i></span>{% endif %}#}
                  {#{% endfor %}#}
                {#</div>#}
                {#{% endif %}#}

                {% if product.price %}
                  <p class="price">
                      {% if not product.special %}
                        {{ product.price }}
                      {% else %}
                        <span class="price-new">{{ product.special }}</span>
                        <span class="price-old">{{ product.price }}</span>
                      {% endif %}
                      {% if product.tax %}
                        <span class="price-tax">{{ text_tax }} {{ product.tax }}</span>
                      {% endif %} </p>
                {% endif %}

              </div>
              {#<div class="button-group">#}
                {#<button type="button" onclick="cart.add('{{ product.product_id }} ', '{{ product.minimum }} ');"><span class="hidden-xs hidden-sm hidden-md">{{ button_cart }}</span> <i class="fa fa-shopping-cart"></i></button>#}
                {#<button type="button" data-toggle="tooltip" title="{{ button_wishlist }}" onclick="wishlist.add('{{ product.product_id }} ');"><i class="fa fa-heart"></i></button>#}
                {#<button type="button" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add('{{ product.product_id }} ');"><i class="fa fa-exchange"></i></button>#}
              {#</div>#}

              <div class="button-group">
                  {% if helper.inCompareList(product.product_id) %}
                    <button type="button" class="compare btn btn-default disabled" data-toggle="tooltip" title="{{ button_compare }}"  disabled></button>
                  {% else %}
                    <button type="button" class="compare btn btn-default" data-toggle="tooltip" title="{{ button_compare }}" onclick="compare.add(event, '{{ product.product_id }}');"></button>
                  {% endif %}

                  {% if helper.inWishList(product.product_id) %}
                    <button type="button" class="favor btn btn-default is-favor" data-toggle="tooltip" data-wish="{{ helper.inWishList(product.product_id) }}" data-cancel="{{ button_cancel }}" data-title="{{ button_wishlist }}" title="{{ button_cancel }}{{ button_wishlist }}" onclick="wishlist.remove(event,'{{ product.product_id }}');"></button>
                  {% else %}
                    <button type="button" class="favor btn btn-default" data-toggle="tooltip" data-wish="{{ helper.inWishList(product.product_id) }}" data-cancel="{{ button_cancel }}" data-title="{{ button_wishlist }}" title="{{ button_wishlist }}" onclick="wishlist.add(event,'{{ product.product_id }}');"></button>
                  {% endif %}
              </div>
            </div>
          </div>

          {% set i = i + 1 %}
          {% endfor %}
        </div>
      </div>
      {% endif %}
      
      {{ content_bottom }}</div>
    {{ column_right }}</div>
</div>

{{ footer }}  